use serde::{Deserialize, Serialize};
use time::OffsetDateTime;
use uuid::Uuid;
#[derive(Serialize, Deserialize, Debug, PartialEq)]
pub struct Message {
    pub event_id: String,
    pub userpost_id: Uuid,
    pub sent: OffsetDateTime,
}

impl Message {
    pub fn event_id(&self) -> String {
        self.event_id.clone()
    }
    pub fn userpost_id(&self) -> Uuid {
        self.userpost_id
    }
    pub fn sent(&self) -> OffsetDateTime {
        self.sent
    }
}
